#ifndef MYLABEL_H
#define MYLABEL_H
#include<QEvent>
#include <QLabel>

class mylabel : public QLabel//改变父类
{
    Q_OBJECT
public:
    explicit mylabel(QWidget *parent = nullptr);

    //重写鼠标进入事件
    void enterEvent(QEvent *event);

    //重写鼠标离开事件
    void leaveEvent(QEvent *);

    //重写鼠标的移动，按压，释放事件
     void mouseMoveEvent(QMouseEvent *ev) ;
     void mousePressEvent(QMouseEvent *ev) ;
     void mouseReleaseEvent(QMouseEvent *ev) ;


signals:

public slots:
};

#endif // MYLABEL_H
